package com.springcloud.controller;

import com.springcloud.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Title: SendMessageController
 * Description: TODO
 *
 * @author gejx
 * @version V1.0
 * @date 2022-01-06
 */
@RestController
public class SendMessageController {
    @Resource
    private IMessageProvider provider;
    @GetMapping("/sendMessage")
    public String sendMessage(){
        return provider.send();
    }
}
